/**
   Copyright 2012 Shakil Siraj (shakil.siraj@gmail.com)

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
 */
package com.googlecode.objectify.test.dataloader.example.bookstore;

import com.googlecode.objectify.annotation.Cache;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Index;
import com.googlecode.objectify.test.dataloader.example.BaseDatastoreEntity;

/**
 * @author Shakil Siraj (shakil.siraj@gmail.com)
 * 
 */
@Entity
@Cache
public class Publisher extends BaseDatastoreEntity {

    /**
     * The name of the publisher.
     */
	@Index
    private String name;

    /**
     * Publishers contact address.
     */
    private Address contactAddress;

    /**
     * Name of the person who is the contract person for the publisher
     */
    private String salesContact;

    /**
     * Getter method for name.
     * 
     * @return the name
     */
    public String getName() {
	return name;
    }

    /**
     * Setter method for name.
     * 
     * @param name
     *            the name to set
     */
    public void setName(String name) {
	this.name = name;
    }

    /**
     * Getter method for contactAddress.
     * 
     * @return the contactAddress
     */
    public Address getContactAddress() {
	return contactAddress;
    }

    /**
     * Setter method for contactAddress
     * 
     * @param contactAddress
     *            the contactAddress to set
     */
    public void setContactAddress(Address contactAddress) {
	this.contactAddress = contactAddress;
    }

    /**
     * Getter method for salesContact.
     * 
     * @return the salesContact
     */
    public String getSalesContact() {
	return salesContact;
    }

    /**
     * Setter method for salesContact.
     * 
     * @param salesContact
     *            the salesContact to set
     */
    public void setSalesContact(String salesContact) {
	this.salesContact = salesContact;
    }
}
